<?php

defined('BASEPATH') OR exit('No direct script access allowed');

// bude z toho MY_Controller

class Welcome extends CI_Controller 
{
	public function __construct()
	{
		parent::__construct();
		$this->load->helper('url');
	}
	
	public function loadView($viewName, $data)
	{
		return $this->load->view($viewName, $data, TRUE);
	}
	
	public function showView($viewName, $data)
	{
		$viewData["baseUrl"] = base_url();
		//$viewData["viewData"] = $this->load->view($viewName, $data);
		$this->load->view("whole_site", $viewData);
	}
	
	public function index()
	{
		$this->showView("","");
	}
}

/* End of file welcome.php */
/* Location: ./application/controllers/Welcome.php */